<?php

/***********************************************************
 * Define all your database interactions here
 ***********************************************************/
class Quote extends rokko\RokkoModel {
   
   /***********************************************************
    * 
    ***********************************************************/
   public function getRandomQuote(){
      $titles = array(
            "A day without sunshine is like, you know, night.",
            "A friend doesn't go on a diet because you are fat.",
            "A nickel ain't worth a dime anymore.",
            "A sure cure for seasickness is to sit under a tree.",
            "A waffle is like a pancake with a syrup trap."
        );

        $rand = rand(0, count($titles) - 1);
        
        return $titles[$rand];
   }
}